<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Chubanzengshu extends Model
{
    //展示图书列表
    
    protected $table = 'yds_hangye_chubanzengshu';

    protected $primaryKey = 'id';

    //关闭更新  'updated_at`, `created_at' 字段
    public $timestamps = false;

    //一对一关系(书籍信息)
    public function hasOnebooks()
    {
        return $this->hasOne('App\Models\Book','book_id','zengshulist');
    }

}
